-- local status, nvim_tree = pcall(require, "nvim-tree")
-- if not status thenvim.notify("没有找到 nvim-tree")return
-- end-- 列表操作快捷键
-- local list_keys = require('keybindings').nvimTreeList
-- nvim_tree.setup({-- 不显示 git 状态图标git = {enable = false,},-- project plugin 需要这样设置update_cwd = true,update_focused_file = {enable = true,update_cwd = true,},-- 隐藏 .文件 和 node_modules 文件夹filters = {dotfiles = true,custom = { 'node_modules' },},view = {-- 宽度width = 40,-- 也可以 'right'side = 'left',-- 隐藏根目录hide_root_folder = false,-- 自定义列表中快捷键mappings = {custom_only = false,list = list_keys,},-- 不显示行数number = false,relativenumber = false,-- 显示图标signcolumn = 'yes',},actions = {open_file = {-- 首次打开大小适配resize_window = true,-- 打开文件时关闭quit_on_open = true,},},-- wsl install -g wsl-open-- https://github.com/4U6U57/wsl-open/system_open = {cmd = 'wsl-open', -- mac 直接设置为 open},
-- })
-- -- 自动关闭
-- vim.cmd([[autocmd BufEnter * ++nested if winnr('$') == 1 && bufname() == 'NvimTree_' . tabpagenr() | quit | endif
-- ]])